package com.dq.controller.app.user;


import com.dq.controller.in.user.UserSummaryQuery;
import com.dq.exception.customException.AdminException;
import com.dq.service.AllService;
import com.dq.vo.Vo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author luchangtong
 * @Date 2020/5/12 14:06
 */
@RestController
@RequestMapping("/app/appUserScheduling/")
@Api(description = "工作安排")
public class AppUserSchedulingController extends AllService {
    @ApiOperation("列表")
    @PostMapping("list")
    public Vo list(@RequestBody UserSummaryQuery userSummaryQuery) throws AdminException {

        return new Vo(userSchedulingService.list(userSummaryQuery.getUserId(), userSummaryQuery.getYear(), userSummaryQuery.getMonth(),userSummaryQuery.getDay()));
    }
}
